<template>
  <div class="container-wrap">
    <div v-swiper:mySwiper="swiperOption">
      <div id="swiper1" class="container-swiper swiper-wrapper">
        <div
          class="container-swiper-list swiper-slide"
          v-for="item in [1, 2, 3]"
          :key="item"
        >
          <div class="container-swiper-list-item">
            <div class="project-card">
            <div class="card-top">
              <h2 class="card-title">金融科技应用</h2>
              <img
                class="card-img"
                src="@/static/img/home/logo-project-1@2x.png"
                alt=""
              />
            </div>
            <div class="card-bottom">
              <p class="card-desc">民生银行深圳分行</p>
              <p class="card-desc">会员客户数字化管理和定制化场景营销服务</p>
              <div class="card-btn">了解更多</div>
            </div>
          </div>
          </div>
        </div>
        <div
          class="swiper-pagination"
          slot="pagination"
          style="bottom: -10px"
        ></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "MediaReport",
  data() {
    return {
      swiperOption: {
        direction: "horizontal",
        autoplay: {
          delay: 1500,
          stopOnLastSlide: false,
          disableOnInteraction: false,
        },
        slidesPerView: "auto",
        // 初始化定位
        initialSlide: 1,
        centeredSlides: true,
        spaceBetween: 20,
        // 注意swiper版本写法，不同版本写法不同
        pagination: {
          el: ".swiper-pagination",
          clickable: true,
          type: "bullets",
        },
      },
    };
  },
};
</script>
<style scoped lang="scss">
.container-wrap {
  // height: 540px;
}
.container {
  &-swiper {
    display: flex;
    align-items: center;
    padding-top: 40px;
    height: 350px;
    &-list {
      width: 360px;
      background-color: #ffffff;
      border-radius: 10px;
      margin: auto;
    }
  }
}

#swiper1 {
  width: 100%;
  overflow: hidden;
  padding: 0 0 10px 0;
}
.swiper-wrapper {
  display: flex;
  align-items: center;
}
.swiper-container,
.swiper-container2 {
  width: 100%;
  overflow: visible !important;
  position: relative;
}
#swiper1 .swiper-container .swiper-wrapper .swiper-slide {
  width: 300px;
  border-radius: 10px;
}

/* 上一张 */
.swiper-container .swiper-wrapper .swiper-slide-prev {
  margin-top: 15px;
  height: 330px !important;
}
/* 下一张 */
.swiper-container .swiper-wrapper .swiper-slide-next {
  margin-top: 15px;
  height: 330px !important;
}

/* 中间的图片 */
.swiper-container .swiper-wrapper .swiper-slide-active {
}

.project-block {
  display: flex;
  align-items: center;
  // height: 874px;
  height: 100%;
  // background: url("@/static/img/home/bj-project@2x.png") no-repeat;
  background-size: cover;
}
.project-card {
  width: 958px;
  height: 516px;
  background: url("@/static/img/home/bg-project-1@2x.png") no-repeat;
  background-size: contain;
  border-radius: 25px;
  .card-top {
    height: 192px;
    width: 100%;
    display: flex;
    padding-left: 148px;
    padding-right: 90px;
    align-items: center;
    justify-content: space-between;
    .card-img {
      width: 212px;
      height: 81px;
    }
    .card-title {
      font-family: Microsoft YaHei;
      font-weight: bold;
      color: #0083ce;
    }
  }

  .card-bottom {
    box-sizing: border-box;
    padding-top: 95px;
    padding-left: 148px;

    .card-desc {
      margin-bottom: 0;
      font-size: 30px;
      font-family: Microsoft YaHei;
      color: #737373;
    }

    .card-btn {
      width: 141px;
      line-height: 34px;
      margin-top: 27px;
      text-align: center;
      border: 2px solid #737373;
      color: #737373;
      border-radius: 17px;
      &:hover {
        border: 2px solid #0083ce;
        color: #0083ce;
        cursor: pointer;
      }
    }
  }
}
</style>